Skip to main content
Version: v2.0

Nodemailer Datasource

Nodemailer as a datasource: Amp up your communication game by using a mailer as a powerful data source. Connect seamlessly to send information through emails. Transform your app into a messaging maestro, unlocking a world of possibilities. Ready to send your data soaring through the digital mail stream? ๐Ÿ“งโœจ

Sending emails in your Node.js application has never been smoother. The Godspeed Nodemailer Plugin provides seamless integration between the robust Godspeed framework and Nodemailer, the go-to solution for email delivery in Node.js.

Featuresโ€‹

- Effortless Setup: Get up and running in minutes with our easy-to-follow setup guide.
- Dynamic Templating: Craft personalized emails with dynamic content using popular templating engines.
- Error Resilience: Robust error handling ensures reliable email delivery, even in challenging scenarios.
- Scalable and Secure: Designed for scalability and security, so your email system can grow with your application.

Whether you're sending transactional emails, newsletters, or notifications, this plugin empowers you to deliver messages with Godspeed. Let's elevate your email game together!

Example usageโ€‹

Configโ€‹

src/datasources/mail.yaml
type: mail
user: 'godspeed@gmail.com'
pass: 'rmeb bjak xcam xkub'

Event for Producerโ€‹

src/events/mail_send_event.yaml
http.post./mail:
summary: sending_mail
description: sending_mail
fn: mail_send
body:
type: object
properties:
name:
type: string
responses:
200:
content:
application/json:
schema:
type: object

Workflow to send mailโ€‹

src/functions/mail_send.yaml
summary: send
tasks:
- id: send_mail
fn: datasource.mail.send
args:
from: 'sender@gmail.com'
to: 'receiver@gmail.com'
subject: 'Hello from Godspeed'
text: 'Have a Nice day'

- Plugin Repository
- Issue Tracker
- npm package